tmem: Wrap atomic_t in struct tmem_statistics as well.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 16 May 2016 02:44:35 +0000 (22:44 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 2 Jun 2016 19:12:05 +0000 (15:12 -0400)
commitde55e5a0b36591ef0407931b61deb29289275f51
tree7e52011556407f74dd3e31a1bdd749f816b6da96
parent07b8cc4ead6c720b17ba95c57126b4a9def61c4c
tmem: Wrap atomic_t in struct tmem_statistics as well.

The macros: atomic_inc_and_max and atomic_dec_and_assert
use also the 'stats' to access them. Had to open-code
access to pool->pgp_count as it would not work anymore.

No functional change.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/tmem.c